<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <meta HTTP-EQUIV="Content-Type"content="text/html;charset=GBK">
    <title>PersonJSP</title>
</head>
<body>
<jsp:useBean id="person" class="com.example.chapter5.person" scope="page"></jsp:useBean>
<div>
  <ul>
   <li>
          姓名：<jsp:getProperty name="person" property="name"/>
     </li>
        <li>
           性别：<jsp:getProperty name="person" property="sex"/>
       </li>
      <li>
          年龄：<jsp:getProperty name="person" property="age"/>
    </li>
    <li>
         已婚：<jsp:getProperty name="person" property="married"/>
     </li>
  </ul>
</div>
</body>
</html>